Optimal. Leaf size=27 \[ -\frac {2 \tanh ^{-1}\left (\frac {\pi -6 x}{\sqrt {12+\pi ^2}}\right )}{\sqrt {12+\pi ^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {632, 212}
\begin {gather*} -\frac {2 \tanh ^{-1}\left (\frac {\pi -6 x}{\sqrt {12+\pi ^2}}\right )}{\sqrt {12+\pi ^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 632
Rubi steps
\begin {align*} \int \frac {1}{1+\pi x-3 x^2} \, dx &=-\left (2 \text {Subst}\left (\int \frac {1}{12+\pi ^2-x^2} \, dx,x,\pi -6 x\right )\right )\\ &=-\frac {2 \tanh ^{-1}\left (\frac {\pi -6 x}{\sqrt {12+\pi ^2}}\right )}{\sqrt {12+\pi ^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 29, normalized size = 1.07 \begin {gather*} \frac {2 \tanh ^{-1}\left (\frac {-\pi +6 x}{\sqrt {12+\pi ^2}}\right )}{\sqrt {12+\pi ^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.59, size = 26, normalized size = 0.96
method | result | size |
default | \(\frac {2 \arctanh \left (\frac {-\pi +6 x}{\sqrt {\pi ^{2}+12}}\right )}{\sqrt {\pi ^{2}+12}}\) | \(26\) |
risch | \(\frac {\ln \left (\pi ^{2}-\pi \sqrt {\pi ^{2}+12}+6 x \sqrt {\pi ^{2}+12}+12\right )}{\sqrt {\pi ^{2}+12}}-\frac {\ln \left (-\pi ^{2}-\pi \sqrt {\pi ^{2}+12}+6 x \sqrt {\pi ^{2}+12}-12\right )}{\sqrt {\pi ^{2}+12}}\) | \(73\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 39, normalized size = 1.44 \begin {gather*} -\frac {\log \left (\frac {\pi - 6 \, x + \sqrt {\pi ^{2} + 12}}{\pi - 6 \, x - \sqrt {\pi ^{2} + 12}}\right )}{\sqrt {\pi ^{2} + 12}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 51 vs.
\(2 (23) = 46\).
time = 1.94, size = 51, normalized size = 1.89 \begin {gather*} \frac {\log \left (-\frac {\pi ^{2} - 6 \, \pi x + 18 \, x^{2} - {\left (\pi - 6 \, x\right )} \sqrt {\pi ^{2} + 12} + 6}{\pi x - 3 \, x^{2} + 1}\right )}{\sqrt {\pi ^{2} + 12}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 76 vs.
\(2 (26) = 52\).
time = 0.13, size = 76, normalized size = 2.81 \begin {gather*} \frac {\log {\left (x - \frac {\pi }{6} + \frac {\pi ^{2}}{6 \sqrt {\pi ^{2} + 12}} + \frac {2}{\sqrt {\pi ^{2} + 12}} \right )}}{\sqrt {\pi ^{2} + 12}} - \frac {\log {\left (x - \frac {\pi }{6} - \frac {2}{\sqrt {\pi ^{2} + 12}} - \frac {\pi ^{2}}{6 \sqrt {\pi ^{2} + 12}} \right )}}{\sqrt {\pi ^{2} + 12}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.71, size = 45, normalized size = 1.67 \begin {gather*} -\frac {\log \left (\frac {{\left | -\pi + 6 \, x - \sqrt {\pi ^{2} + 12} \right |}}{{\left | -\pi + 6 \, x + \sqrt {\pi ^{2} + 12} \right |}}\right )}{\sqrt {\pi ^{2} + 12}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.42, size = 23, normalized size = 0.85 \begin {gather*} -\frac {2\,\mathrm {atanh}\left (\frac {\Pi -6\,x}{\sqrt {\Pi ^2+12}}\right )}{\sqrt {\Pi ^2+12}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________